package com.systemCapacity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.systemCapacity.common.dto.BattleCapacityResolveDto;
import com.systemCapacity.common.dto.CapacityMenuDto;
import com.systemCapacity.entity.BattleCapacityResolve;
import com.systemCapacity.entity.Enum.TenCapacityType;

import java.util.List;

public interface BattleCapacityResolveService extends IService<BattleCapacityResolve> {

    List<BattleCapacityResolveDto> getTree();

    List<String> getResolve(String taskId);
    /**
     * 查询作战任务下的能力分解
     * @param taskId 作战id
     */
    List<BattleCapacityResolveDto> getResolveCapacityList(String taskId);

    List<BattleCapacityResolveDto> getChildResolve(String taskId, TenCapacityType capacityId);

    boolean resolveExist(String resolveId);

    void addBattleResolve(List<BattleCapacityResolveDto> dtos);

    void deleteResolve(String taskId);

    boolean addBattleResolveByIds(List<String> ids, String taskId);

    List<CapacityMenuDto> getCapacitiesMenu(String taskId);
}
